<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="ctxStatic" value="${pageContext.request.contextPath}/static"/>
<script type="text/javascript" charset="utf-8">
    var ctx = "${ctx}";//访问后台路径
    var ctxStatic = "${ctxStatic}";//静态资源路径
</script>
